public class Main {
    public static void main(String[] args) throws Exception {
        // System.out.println("Hello, World!");
        // 给Person类增加getage/setage方法
        class Person{
            private String name;
            private int age;

            public  void setname(String name){
                this.name = name;
            

            }
            public String getname(){
                return name;
            }
            public  void setage(int age){
                this.age = age;

            }
            public int getage(){
                return age;
            }
        }
        Person p = new Person();
        p.setname("xiao kong");
        p.setage(18);
        System.out.println(p.getname());
        System.out.println(p.getage());

     
    }
}
